//
//  GLWaterFlowLayout.h
//  瀑布流
//
//  Created by CoderGL on 15/12/2.
//  Copyright © 2015年 GL. All rights reserved.
//

#import <UIKit/UIKit.h>
@class GLWaterFlowLayout;

@protocol GLWaterFlowLayoutDelegate <NSObject>
- (CGFloat)waterflowLayout:(GLWaterFlowLayout *)waterflowLayout heightForWidth:(CGFloat)width atIndexPath:(NSIndexPath *)indexPath;
@end

@interface GLWaterFlowLayout : UICollectionViewLayout
/** 距离顶部，底部，左边，右边的距离*/
@property (nonatomic, assign) UIEdgeInsets sectionInset;

/** 每行之间的距离*/
@property (nonatomic, assign) CGFloat rowMargin;

/** 每列之间的距离 */
@property (nonatomic, assign) CGFloat columnMargin;

/** 列数*/
@property (nonatomic, assign) NSUInteger columnsCount;

@property (nonatomic, weak) id<GLWaterFlowLayoutDelegate> delegate;
@end
